/**
 * Created by Jacky
 *
 * brief :
 */

define('ssq/view/Base', function(require){
    return KG.Class.define('ssq.view.Base', {
        _init : function(ssq, opts){
            this.ssq = ssq;
            this.setting = opts || {};

            this.elem = null;

            this.initVar();
            this.initView();
            this.initEvent();
            this.initEnd();
        },

        initVar : function(){

        },

        getTemplate : function(){
            return '';
        },

        initView : function(){
            var tpl = template.compile(this.getTemplate())({
                ssq : this.ssq,
                setting : this.setting
            });

            this.elem = $(tpl);
        },

        initEvent : function(){

        },

        initEnd : function(){

        },

        getElement : function(){
            return this.elem;
        }
    });
});